/**
 * @param {string} s
 * @return {boolean}
 */
var isValid = function(s) {
    str = s
    while (str) {
        str = s.split('abc').join('');
        console.log(str);
        if (s === str) {
            return false;
        }
        s = str;
    }
    return true;
};


console.log(isValid("abcabcababcc"))